package com.woniuxy.cloud.carl.user.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 地址管理
 * </p>
 *
 * @author fjx
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_addresses")
public class Addresses implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 地址表id
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Long addressId;

    /**
     * 具体地址
     */
    private String addressInfo;

    /**
     * 收货人姓名
     */
    private String userName;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 默认地址: 1.默认 0.普通
     */
    private Integer defaultAddr;

    /**
     * 用户id
     */
    private Integer userId;


}
